﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Events
{
    /// <summary>
    /// different types of message that could be used
    /// </summary>
    public enum messageType{Error, Info};
    
    /// <summary>
    /// The event throwed when a message had to be known 
    /// by the view layer
    /// </summary>
    public class AppMessageEventArgs : EventArgs
    {
        public messageType MessageType { get; set; }
        public string Message { get; set; }

        public AppMessageEventArgs(string message) : this(message, messageType.Info){}
        public AppMessageEventArgs(string message, messageType type)
		{
            this.Message = message;
            this.MessageType = type;
		}
    }
}
